# encoding: UTF-8

class Admin::MyinfosController < ApplicationController

  def edit
    @myinfo = User.find(params[:id]) 
    set_seo_meta '帐号信息修改'
  end

  def update
    @myinfo = User.find(params[:id])
    if @myinfo.update_attributes!(params[:session])
      redirect_to edit_myinfo_path(params[:id]), notice:'修改成功'
    else
      redirect_referrer_or_defautl default
    end
  end

end
